<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{#$title#}</title>
<meta http-equiv="X-UA-Compatible" content="IE=7">


<link href="{#$QISHI.site_template#}css/common.css" rel="stylesheet" type="text/css" />
<link href="{#$QISHI.site_template#}css/user.css" rel="stylesheet" type="text/css" />
<script src="{#$QISHI.site_dir#}ajax/ajax_category_jobs.js" type='text/javascript' language="javascript"></script>
<script>
function chk_form()
{
if (document.Form1.jobs_name.value=="")
	{
	alert("请输入职位名称")
	document.Form1.jobs_name.focus();
	return (false);
	}
if (document.Form1.amount.value=="" || document.Form1.amount.value==0)
	{
	alert("请正确输入人数！")
	document.Form1.amount.focus();
	return (false);
	}
if (document.Form1.category.value=="")
	{
	alert("请选择职位分类！")
	document.Form1.category.focus();
	return (false);
	}
if (document.Form1.subclass.value=="")
	{
	alert("请选择职位小类！")
	document.Form1.subclass.focus();
	return (false);
	}
if (document.Form1.trade.value=="")
	{
	alert("请选择所属行业！")
	document.Form1.trade.focus();
	return (false);
	}
if (document.Form1.district.value=="")
	{
	alert("请选择工作地区！")
	document.Form1.district.focus();
	return (false);
	}
if (document.Form1.contents.value.length<10)
	{
	alert("请输入职位描述！（10个字符以上）")
	document.Form1.contents.focus();
	return (false);
}
if (document.Form1.contact.value=="")
	{
	alert("请输入联系人！")
	document.Form1.contact.focus();
	return (false);
	}
if (document.Form1.telephone.value=="")
	{
	alert("请输入联系电话！")
	document.Form1.telephone.focus();
	return (false);
	}
if (document.Form1.address.value=="")
	{
	alert("请输入联系地址！")
	document.Form1.address.focus();
	return (false);
	}
if ((/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.Form1.email.value))==0)
{
alert("E_Mail格式有误!")
document.Form1.email.focus();
return (false);
}
return (true);
}
</script>
</head>
<body>
{#include file="header.htm"#}
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:8px;" >
  <tr>
    <td width="208" valign="top" class="link_bk" >
	{#include file="member_company/company_left.htm"#}
	</td>
    <td valign="top"><form id="Form1" name="Form1" method="post" action="?act=editjobs_save"  onsubmit="return chk_form();">

      <table width="100%" border="0" cellpadding="4" cellspacing="0" bgcolor="#FFFFFF" style="margin-bottom:130px;" class="user_right_box">
        <tr>
          <td height="22" colspan="2"  class="user_right_box_bg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><span class="right_top_tit" style="padding-left:15px;">修改职位&nbsp;&nbsp;&nbsp;<span style="font-size:12px; color:#333333; font-weight:100">(带<font style="color:#FF3300; font-weight:bold">*</font>为必填项)</span> </span></td>
                <td width="60" class="link_lan"><a href="?">管理首页</a></td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td width="110" height="30" align="right" bgcolor="#FFFFFF"  style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 职位名称：</td>
          <td  style=" border-bottom:1px #CCCCCC dashed"><input name="jobs_name" type="text" class="company_mb_input" id="jobs_name" value="{#$jobs.jobs_name#}" maxlength="10" />
              <input name="emergency" type="checkbox" id="emergency" style="vertical-align:middle" {#if $jobs.emergency != 2#}onclick="check_emergency();total_pointst();" {#/if#} value="2" {#if $jobs.emergency eq 2#}checked="checked"{#/if#}/>
            <label for="Emergency"> 紧急招聘 </label>&nbsp;&nbsp;&nbsp;<span id="emergency_info" style="color: #0033FF"></span><input name="oldemergency" type="hidden" value="{#$jobs.emergency#}" /></td>
        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 职位性质：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		  {#section name=nature loop=$nature#}
		   <label><input name="nature"  type="radio" value="{#$nature[nature].id#}" {#if $nature[nature].id eq $jobs.nature#}checked="checked"{#/if#} />
		   {#$nature[nature].categoryname#}&nbsp;&nbsp;&nbsp;&nbsp;</label>  
		  {#/section#}		  </td>
        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold;">*</span> 招聘人数：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><input name="amount" type="text" class="company_mb_input" id="amount" value="{#$jobs.amount#}" maxlength="3" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
            人</td>
        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#FFFFFF"style=" border-bottom:1px #CCCCCC dashed">有效时间：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">{#$jobs.deadline_days#}。<span style="color: #999999">(发布日期为：{#$jobs.addtime|date_format:"%Y-%m-%d %H:%M:%S"#}，截止日期为：{#$jobs.deadline|date_format:"%Y-%m-%d %H:%M:%S"#})</span><input name="olddays" type="hidden" value="{#$jobs.days#}" /><input name="olddeadline" type="hidden" value="{#$jobs.deadline#}" /></td>
        </tr>
		<tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style="border-bottom:1px #CCCCCC dashed; color:#0033CC">延长有效时间：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><input name="days" type="text"  class="company_mb_input" id="days" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');check_deadline(this.value);total_pointst()" value="0" maxlength="3" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"  style="width:50px;"/> 天&nbsp;&nbsp;(0表示不延长)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="daysa"></span></td>
        </tr>
        <tr>
          <td height="30" align="right" valign="top" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 职位类别：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><select name="category"  style="width:210px; height:20px; font-size:12px;" onchange="show_category(this.value)">
		  <option value="">请选择职位大类</option>
		  {#section name=category loop=$category#}
            <option value="{#$category[category].id#}" {#if $category[category].id eq $jobs.category#}selected="selected"{#/if#}>{#$category[category].categoryname#}</option>
			{#/section#}
            </select>
            精准选择职位类别可以有效提升招聘效果
<div id="subclass" style="padding-top:8px;">
            <select name="subclass" style="width:210px; height:20px; font-size:12px;">
			  {#section name=subclass loop=$subclass#}
            <option value="{#$subclass[subclass].id#}" {#if $subclass[subclass].id eq $jobs.subclass#}selected="selected"{#/if#}>{#$subclass[subclass].categoryname#}</option>
			{#/section#}
            </select>
</div></td>
        </tr>
		<tr>
          <td align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 所属行业：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		  <select name="trade"  style="width:210px; height:20px; font-size:12px;">
		  <option value="">请选择行业</option>
		  {#section name=trade loop=$trade#}
            <option value="{#$trade[trade].id#}" {#if $trade[trade].id eq $jobs.trade#}selected="selected"{#/if#}>{#$trade[trade].categoryname#}</option>
			{#/section#}
            </select> </td>
        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 工作地区：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		  <select name="district"  style="width:210px; height:20px; font-size:12px;">
		  <option value="">请选择工作地区</option>
		  {#section name=district loop=$district#}
            <option value="{#$district[district].id#}" {#if $district[district].id eq $jobs.district#}selected="selected"{#/if#}>{#$district[district].categoryname#}</option>
			{#/section#}
            </select>		  </td>
        </tr>
		   <tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"> 学历要求：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><select name="education"  style="width:210px; height:20px; font-size:12px;">
            <option value="">学历不限</option>            
		  {#section name=education loop=$education#}            
            <option value="{#$education[education].id#}" {#if $education[education].id eq $jobs.education#}selected="selected"{#/if#}>{#$education[education].categoryname#}</option>            
			{#/section#}            
          </select>
          及以上</td>
          </tr>
				<tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">工作经验：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		  <select name="experience"  style="width:210px; height:20px; font-size:12px;">
            <option value="">工作经验不限</option>            
		  {#section name=experience loop=$experience#}            
            <option value="{#$experience[experience].id#}" {#if $experience[experience].id eq $jobs.experience#}selected="selected"{#/if#}>{#$experience[experience].categoryname#}</option>            
			{#/section#}            
          </select>		  </td>
		        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		  <span style="color:#FF3300; font-weight:bold">*</span> 月薪范围：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		  <select name="wage"  style="width:210px; height:20px; font-size:12px;">
		  {#section name=wage loop=$wage#}            
            <option value="{#$wage[wage].id#}" {#if $wage[wage].id eq $jobs.wage#}selected="selected"{#/if#}>{#$wage[wage].categoryname#}</option>            
			{#/section#}            
          </select></td>
        </tr>
        <tr>
          <td align="right" valign="top" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		  <span style="color:#FF3300; font-weight:bold">*</span> 职位描述：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		  <textarea name="contents" class="company_mb_textarea" id="contents" style="width:450px; height:150px;"onpropertychange="if(this.value.length>1000){this.value=this.value.slice(0,1000)}">{#$jobs.contents#}</textarea>
            <br />
            <div style="line-height:30px; height:30px;">&nbsp;说明：请详细描述该职位，内容可包括：职位要求，岗位职责等。</div> </td>
        </tr>
		<tr>
          <td height="30" align="right" bgcolor="#EDF5F8" style=" border-bottom:1px #CCCCCC dashed"><strong>联系方式</strong></td>
          <td bgcolor="#EDF5F8" style=" border-bottom:1px #CCCCCC dashed">(默认为企业联系方式)</td>
        </tr>
		<tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 联 系 人：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><input name="contact" type="text" class="company_mb_input" id="contact" value="{#$jobs.contact.contact#}" maxlength="15" /></td>
        </tr>
		<tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold"> </span>联系人QQ号码：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><input name="qq" type="text" class="company_mb_input" id="qq" maxlength="50" value="{#$jobs.contact.qq#}" />
            <label></label></td>
        </tr>
		<tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 联系电话：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><input name="telephone" type="text" class="company_mb_input" id="telephone" maxlength="35" value="{#$jobs.contact.telephone#}" /></td>
        </tr>
		<tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 联系地址：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><input name="address" type="text" class="company_mb_input" id="address" maxlength="50"  value="{#$jobs.contact.address#}"/></td>
        </tr>
		<tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 联系邮箱：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><label>
          <input name="email" type="text" class="company_mb_input" id="email" maxlength="80"  value="{#$jobs.contact.email#}"/>
          </label></td>
        </tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">用邮箱接收简历?</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><label>
            <input name="notify" type="radio" value="1" {#if $jobs.contact.notify eq 1#}checked="checked"{#/if#} /> 接收
          </label> &nbsp;&nbsp;&nbsp;
            <label>
            <input type="radio" name="notify" value="0" {#if $jobs.contact.notify eq "0"#}checked="checked"{#/if#}/>不接收            </label> 
            <span style="color: #666666"> &nbsp;&nbsp;&nbsp;(默认为接收：当有人给此岗位投递简历时，系统会发一份通知邮件提醒您查看)</span></td>
        </tr>
		<tr>
          <td colspan="2" bgcolor="#EDF5F8"><table width="100%" border="0" cellpadding="20" cellspacing="0" class="link_lan"  style="line-height:200%;">
            <tr>
              <td width="60%" >
			  <span id="release_jobs_edit"></span>
                <span id="release_info"></span>
                <span id="release_daysa"></span>
				<span id="total"></span>
                <a href="?act=points_report" target="_blank">[账户明细]</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="?act=points_rule" target="_blank">[消费规则]</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="?act=payment">[充值]</a> </td>
              <td width="40%">
			  <input name="audit" type="hidden" value="{#$jobs.audit#}" />
			  <input name="id" type="hidden" value="{#$jobs.id#}" />
			  <input type="image" name="imageField" src="{#$QISHI.site_template#}images/edit.gif" /></td>
            </tr>
          </table></td>
          </tr>
      </table>
        </form>
    </td>
  </tr>
</table>
<script language="JavaScript">
<!--
var pointsc_total = {#$pointsc_total#};
var jobs_edit = {#$points.jobs_edit#};//修改招聘信息额外扣积分
var jobs_daily = {#$points.jobs_daily#};//每天消耗的积分
var jobs_emergency = {#$points.jobs_emergency#};//紧急招聘所扣积分
{#if $jobs.emergency eq 2#}//假如已经是紧急招聘，就不再扣除积分
jobs_emergency=0;//假如已经是紧急招聘，所扣积分为0
{#/if#}
var val_default=0;//默认增加延长的天数，0为不延长
check_deadline(val_default);//默认天数
total_pointst()//输出总计消费统计积分
function check_emergency()
{
var val=$("emergency");
if (val.checked==true && jobs_emergency>0)
{
//岗位名称右侧
$("emergency_info").innerHTML=" 设置紧急招聘将会额外扣除 <strong style=\"color:#FF0000\">"+jobs_emergency+"</strong> {#$QISHI.points_quantifier#}{#$QISHI.points_byname#}！";
//提交提示
$("release_info").innerHTML=" ☉ 设置紧急招聘额外扣除 <strong >"+jobs_emergency+"</strong> {#$QISHI.points_quantifier#}{#$QISHI.points_byname#}！<br/>";
return jobs_emergency;
}
else
{
$("emergency_info").innerHTML="";
$("release_info").innerHTML="";
return 0;
}
}
function check_deadline(val)
{
var points=val*jobs_daily;
$("days").value=val;
if (val>0)
{
$("daysa").innerHTML="<span  style=\"color:#0033FF\">延长有效时间&nbsp;&nbsp;"+val+"&nbsp;&nbsp;天，修改后将扣除&nbsp;&nbsp;<strong><span style=\"color:#FF3300\">"+points+"</span></strong>&nbsp;&nbsp;{#$QISHI.points_quantifier#}{#$QISHI.points_byname#} </span>";
//底部提示
$("release_daysa").innerHTML=" ☉ 延长有效时间&nbsp;&nbsp;"+val+"&nbsp;&nbsp;天，修改后将扣除&nbsp;&nbsp;<strong>"+points+"</strong>&nbsp;&nbsp;{#$QISHI.points_quantifier#}{#$QISHI.points_byname#}<br />";
}
else
{
$("daysa").innerHTML="";
$("release_daysa").innerHTML="";
}
}
//计算总计消费积分
function total_pointst()
{
var val_days=$("days").value;
var val_pointst=val_days*jobs_daily;
var val_emergency=$("emergency");
if (val_emergency.checked==true)
{
total_emergency=jobs_emergency;
}
else
{
total_emergency=0;
}
totals=val_pointst+total_emergency+jobs_edit;
if (totals>0)
{
$("total").innerHTML="修改本条信息总计扣除&nbsp;<span style=\"font-size:20px; color: #FF0000\">"+totals+"</span>&nbsp;{#$QISHI.points_quantifier#}{#$QISHI.points_byname#}，你目前共有<strong style=\"color:#0033FF\"> {#$pointsc_total#}  </strong>{#$QISHI.points_quantifier#}{#$QISHI.points_byname#}；<br />";
}
else
{
$("total").innerHTML="";
}
if (jobs_edit>0) $("release_jobs_edit").innerHTML=" ☉ 修改本条信息将扣除&nbsp;&nbsp;<strong>"+jobs_edit+"</strong>&nbsp;&nbsp;{#$QISHI.points_quantifier#}{#$QISHI.points_byname#}<br/>";
}
function $(s) {
    return document.getElementById(s);
}
function $$(s) {
    return document.getElementsByName(s);
}
//-->
</script>
{#include file="footer.htm"#}
</body>
</html>
